package hook

import (
	"encoding/json"

	"gitee.com/xgotool/backend-framework-template/model"
)

// 用户地址创建钩子
//
//	hook.address.create	<model.Address>
func AddressCreate(param []byte) error {
	mod := model.Address{}
	err := json.Unmarshal(param, &mod)
	if err != nil {
		return err
	}
	return nil
}
